package com.gongye.courseselectionsystem.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 老师表
 *
 * @author baorongchuan
 * @TableName teacher
 */
@TableName(value = "teacher")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("老师表实体类")
public class Teacher implements Serializable {

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("教师工号")
    @TableField(value = "teacherJobNumber")
    private Integer teacherJobNumber;

    @ApiModelProperty("教师姓名")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty("课程编号")
    @TableField(value = "courseNumber")
    private Integer courseNumber;

    @ApiModelProperty("课程名称")
    @TableField(value = "className")
    private String className;

    @ApiModelProperty("邮箱号")
    @TableField(value = "email")
    private String email;

    @ApiModelProperty("手机号")
    @TableField(value = "phone")
    private String phone;
}